package collection;

import java.util.LinkedList;
import java.util.Queue;

public class QueueTest {
	public static void main(String[] args) {
		Queue<String> q = new LinkedList<String>();
		q.offer("hello");
		q.offer("hehe");
		q.offer("haha");
		q.offer("xi");
		Object obj;
		while((obj=q.poll())!=null){
			System.out.println(obj);
		}
	}
}
